INetwork.connect

interface INetwork
connect
(,
void delegate onConnect
,
uint id = NetID.server
)

Parameters

ip NetIPAddress

The IP to connect

onConnect void delegate

Delegate to execute when connecting

id uint

ID of the address to connect to. Relevant when you're not using a P2P connection. Enforced when using websockets, since direct connection is unavailable.

Return Value

The connection status

Meta